package com.turboconnard.hardware;

import android.content.Context;
import android.os.Vibrator;

import com.turboconnard.data.Library;

public class Vibrato {
	private static Vibrato _instance;
	private Vibrator v;	
	public Vibrato(Context context) {
		super();		
		v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
	}
	public static Vibrato getInstance(){
		if(_instance == null ) _instance = new Vibrato(Library.getInstance().context);
		return _instance;		
	}
	/**
	 * 
	 * @param pLong milliseconds
	 */
	public void vibrate(long pLong){
		v.vibrate(pLong);
	}
}
